package com.example.androidmqtt.Service.ServiceImpl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.androidmqtt.Entry.Message;
import com.example.androidmqtt.Entry.User;
import com.example.androidmqtt.Vo.UserMessage;
import com.example.androidmqtt.Vo.UserMore;

import java.util.List;

/**
 * @author: pjg
 * @time: 2022/9/13
 */

public interface UserService  extends IService<User> {
    UserMore Login(String userName, String userPassword);

    int Register(User user);
    int Register(String userName,String userPassword,Integer userDepartment);

    int ChangeInfo(User user);

    int DeleteUser(Integer userId);


    List<UserMessage> getUserMessage(Integer userId);

    int setMessageRead(Integer userId, Integer newsId);
}
